<!DOCTYPE html>
<html>
    <head>
        <script src="../vue.global.js"></script>
    </head>
    <body>
        <div id="app">
            <button v-on:click="fun">点我</button>
            <p>点击次数：{{count}}</p>
        </div>
        <script>
            Vue.createApp({
                data(){
                    return{
                        count:0
                    };
                },
                methods:{
                    fun(){
                        this.count++;
                    }
                }
            }).mount('#app');
        </script>
    </body>
</html>